package com.sky.happygos.YiPush;

import android.os.Message;

import com.google.gson.Gson;

/**
 * Created by qqqqqqq on 2017/4/21.
 */

public class ProtoJsonU {
    public static Gson gson = new Gson();

    public static Msg to(Message msg){
        Proto p = (Proto) msg.obj;
        Msg m = gson.fromJson(p.data, Msg.class);
        return m;
    }
}
